package root.historic.event;

import root.item.Item;
import root.user.User;
import strategy.GerenciadorItemIF;

public class ItemEvent extends java.util.EventObject {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private User dono;
	private Item item;
	
	public ItemEvent(Object source, User dono, Item item) {
		super(source);
		this.dono=dono;
		this.item= item;
	}
	
	public User getDono(){
		return dono;
	}
	
	public Item getItem(){
		return item;
	}
	
	public String getNomeDono(){
		return dono.getName();
	}
	
	public String getNomeItem(){
		return item.getName();
	}

}
